package org.pp.admin.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class PasswordUpdate {


    @Schema(description = "密码")
    @NotBlank(message = "密码长度在6-18位")
    @Size(min = 6,max=18,message = "密码长度在6-18位")
    String password;

    @Schema(description = "新密码")
    @NotBlank(message = "密码长度在6-18位")
    @Size(min = 6,max=18,message = "密码长度在6-18位")
    String newPassword;
}
